var Global = {
    Author: '蜂蜂',
    Website: 'http://www.51inews.com',
    Title: '口袋奥运',
    loadingText: '努力加载中...',
	expectText: '该功能正在内测中，暂不对外开放',
    emptyText: '网络异常，请稍后再试'
};

Ext.Loader.setConfig({
    enabled: true
});

Ext.application({
    name: 'App',
    title: Global.title,
    
    requires: ['App.util.View', 'App.util.feature.Feature', 'App.util.feature.Sorter'],
    
   	controllers: ["Setting"],
    models: ['News', 'NewsDetail', 'Setting', 'Medal', 'Image'],
    stores: ['News', 'NewsDetail', 'Setting', 'Medal', 'Image'],
    views: ['Main', 'home.Card', 'home.Toolbar', 'home.Carousel', 'home.List', 'medal.Card', 'medal.Grid', 'image.Card', 'image.DataView', 'setting.Card', 'setting.List', 'setting.Info', 'about.About'],
    
    
    glossOnIcon: false,
    tabletStartupScreen: 'resources/kiva/loading/Homescreen~ipad.jpg',
    phoneStartupScreen: 'resources/kiva/loading/Homescreen.jpg',
    
    viewport: {
        autoMaximize: true
    },
    
    launch: function(){
        Ext.Viewport.setMasked({
            xtype: 'loadmask',
            message: Global.loadingText,
        });
        Ext.Viewport.add({
            xtype: 'main'
        });
        Ext.Viewport.setMasked(false);
    }
    
});
